package Exp_3;

//邻接表的边结点类
public class ArcNode {

  public int adjVex;//该弧所指向的顶点位置
  public int value;//边（或弧）的权值
  public ArcNode nextArc;//指向下一条弧

  public ArcNode() {
      this(-1, 0, null);
  }

  public ArcNode(int adjVex) {
      this(adjVex, 0, null);
  }

  public ArcNode(int adjVex, int value) {
      this(adjVex, value, null);
  }

  public ArcNode(int adjVex, int value, ArcNode nextArc) {
      this.adjVex = adjVex;
      this.value = value;
      this.nextArc = nextArc;
  }
}
